<include file="../top" />
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<script type='text/javascript'>
$(document).ready(function(){

  $(".box").toggle(
   function () {

     $("input:checkbox").attr("checked",true);
   },
   function () {

     $("input:checkbox").attr("checked",false);
   }
);


})
</script>

<style style='text/css'>

table {
  background: #FFF;
  border-top: 10px solid #FFF;
  border-bottom: 10px solid #FFF;
  width: 99%;

}

th {
  line-height: 24px;
  background: #BBDDE5 url("__APP__/images/bg_repx.gif") repeat-x;
  white-space: nowrap;
    line-height:38px;
  font-weight:bold;
}

td {
  padding:5px 5px 5px 0;
  text-align:left;
  font-size:12px;
}
a{
  text-decoration:none;

}
th a{
  color:#888;
}
select{
font-size:12px;

}
input{
font-size:12px;

}


</style>
        <div id="right">
        <div style='width:900px;height:5px;background-color:#a1d2ff;margin-top:8px;'></div>
        <div id='search' style='background-color:#ddd;font-size:12px;'>
        <form name='user_list' method='post' action='user_list'>
               &nbsp;&nbsp;&nbsp;查询：
       <select name='locked'>
       		<option value=''>开放与否</option>
       		<option value='0'>开放</option>
       		<option value='1'>封锁</option>
       </select>
       &nbsp;&nbsp;<select name='target'>
       		<option value='username'>用户名：</option>
       		<option value='student_id'>学号：</option>
       </select>
       <input type='text' name='inp' width='100px' />
       <input name='sub' type='submit' value='search'/>
       </form>
        </div>
        <div style='width:900px;height:5px;background-color:#a1d2ff;margin-top:8px;'></div>
           <div style='width:850px;margin-right:auto;margin-left:auto;'>
              <table cellpadding="3" cellspacing="1">
  <tbody>

  <tr>
    <th>
      <input class='box' type="checkbox" checked></th>
      <th width='90px'>编号(5)</th>
      <th width='90px'>用户名(5)</th>
      <th width='90px'>真实姓名(5)</th>
      <th width='100px'>得分(5)</th>
      <th width='100px'>最后登录ip(5)</th>
      <th>他关注|关注他</th>

      <th><a href='Msg?order=time' title='点击按编号数排序'>创建时间</a></th>
      <th width='120px'>del，加锁,发布,详细</th>

  </tr>

  <form name='che_box' method='post' action='check'>
  <volist name='list_u' id ='list'>
		      <tr>
		         <td width='20x'><input value='{$list.user_id}' name='checkbox[]' type="checkbox"></td>
	              <td>GDQY{$list.user_id}</td>
	              <td>{$list.username}</td>
	              <td>{$list.realname}</td>
	              <td>{$list.get}分</td>
	              <td>{$list.login_ip}</td>
	              <td style='text-align:center'><a href='focus_user?focus={$list.focus_ids}' class="thickbox"><php>echo count(explode('|',$list['focus_ids']));</php></a>|<a href='focus_user?befocus={$list.focus_ids}' class="thickbox"><php>echo count(explode('|',$list['befocus_ids']));</php></a></td>
	              <td><php>echo date('Y-m-d',$list['create_time'])</php></td>
                  <td>
                    <a href='del_user?id={$list.user_id}'><image src='__APP__/images/user_del.gif''></a>&nbsp;&nbsp;&nbsp;

                    <php>
                     if($list['locked']=='1'){
                     echo "<a href='locked_user?l=0&id=".$list[user_id]."'>解锁</a>&nbsp;";
                     }else{
                       echo "<a href='locked_user?l=1&id=".$list[user_id]."'><image src='__APP__/images/user_locked.gif'></a>&nbsp;&nbsp;&nbsp;";
                     }

                   </php>
                     <a href='__APP__/admin.php/Msg/Msg?username={$list.username}&sub=1'><image src='__APP__/images/user_fabu.gif'></a>&nbsp;
                     <a href='user_detail?id={$list.user_id}' class="thickbox" ><image src='__APP__/images/detail.gif''></a>&nbsp;
                  </td>


              </tr>
	</volist>
    <tr>
    <td>
      <input type="image" border="0" name="all_del_sub" src="__APP__/images/icon_trash.gif"  alt="删除全选" onClick="this.form.submit()">
    </td>

    <td style='text-align:right;font-size:12px;'>锁：</td>
    <td>
      <select name='all_locked'>
	      <option value='1'>加锁</option>
	      <option value='0'>解锁</option>
      </select>&nbsp;&nbsp;<input name='all_locked_sub' type='submit' width='15px' value='ok'>
     </td>
     <td></td>

    </tr>
	</form>


  </tbody>

  </table>
  {$page}
          </div>
</div>

</body>
</html>